package com.guochenglang.www.pojo;

import com.guochenglang.www.pojo.annotate.Table;

/**
 * 会话表
 *
 * @author GuoChenglang
 */
@Table("dialog")
public class Dialog {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 会话用户id
     */
    private Integer anotherId;
    /**
     * 消息
     */
    private String message;
    /**
     * 是否已读
     */
    private Integer isRead;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getAnotherId() {
        return anotherId;
    }

    public void setAnotherId(Integer anotherId) {
        this.anotherId = anotherId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Dialog(Integer id, Integer isRead, String message, Integer anotherId, Integer userId) {
        this.id = id;
        this.isRead = isRead;
        this.message = message;
        this.anotherId = anotherId;
        this.userId = userId;
    }

    public Dialog() {
    }
}
